package io.renren.modules.generator.service;

import io.renren.modules.generator.entity.ProfessionEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-11-15 21:43:34
 */
public interface ProfessionService {
	
	ProfessionEntity queryObject(String code);
	
	List<ProfessionEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(ProfessionEntity profession);
	
	void update(ProfessionEntity profession);
	
	void delete(String code);
	
	void deleteBatch(String[] codes);
	/**
	 * 查询所有职业
	 * @return
	 */
	List<ProfessionEntity> findAllProfession();
}
